package com.example.train.mapper;

import com.example.train.model.SysAdminRoleRelation;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface SysAdminRoleRelationMapper {

    int deleteByRoleId(long roleID);

    int deleteByAdminId(long adminID);

    int deleteById(long id);

    List<SysAdminRoleRelation> selectByAdminIdsAndRoleIds(@Param("adminIds") List<Long> adminIds,@Param("roleIds") List<Long> roleIds);

    int insert(List<SysAdminRoleRelation> record);
}
